#ifndef __GEEK_COMMANDER_DIRITEM_H_INCLUDED_5CCCEB3D_0C3A_4d6d_9D9B_3BE832C9A867__
#define __GEEK_COMMANDER_DIRITEM_H_INCLUDED_5CCCEB3D_0C3A_4d6d_9D9B_3BE832C9A867__

#include "hash.h"
#include "tree.h"

struct geek_diritem
{
    wchar_t display_name[MAX_PATH];
    FILETIME modify_time;
    int attributes;

    geek_hashnode<geek_diritem> name_hashnode;
    geek_treenode<geek_diritem> treenode;
};

inline void geek_diritem_assign(const geek_diritem *from, geek_diritem *to)
{
    wcscpy_s(to->display_name,from->display_name);
    to->modify_time = from->modify_time;
    to->attributes = from->attributes;
}

#endif // __GEEK_COMMANDER_DIRITEM_H_INCLUDED_5CCCEB3D_0C3A_4d6d_9D9B_3BE832C9A867__
